package main;

public class Main {
	public static void main(String[] args) {
		CalendarView v = new CalendarView("Local copy of Tom's cal");
		BirthdayView bv = new BirthdayView("Local copy of birthdays from Tom's cal");
		MyCalendar cal = new MyCalendar(v, "Tom's cal");
		cal.attach(bv);
		cal.addEvent(new Event(EventType.Birthday, "John", 11, 12, 2014));
		cal.addEvent(new Event(EventType.Personal, "Holiday", 28, 12, 2014));
		cal.addEvent(new Event(EventType.Work, "Meeting", 24, 12, 2014));
		v.printAll();
		bv.printAll();
	}
}
